home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / libasound2-plugins / lavcrate.txt < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.0 KB  |  34 lines

  1. Rate Converter Plugin Using libavcodec
  2. ======================================
  3.  
  4. The plugin in rate-lavc subdirectory is an external rate converter using
  5. libavcodec's resampler.  You can use this rate converter plugin by defining a
  6. rate PCM with "converter" parameter, such as:
  7.  
  8.     pcm.my_rate {
  9.         type rate
  10.         slave.pcm "hw"
  11.         converter "lavcrate"
  12.     }
  13.  
  14. The plug plugin has also a similar field, "rate_converter".
  15.  
  16. Or, more easily, define a global variable "defaults.pcm.rate_converter",
  17. which is used as the default converter type by plug and rate plugins:
  18.  
  19.     defaults.pcm.rate_converter "lavcrate"
  20.  
  21. Write the above in your ~/.asoundrc or /etc/asound.conf.
  22.  
  23. The following converter types are available:
  24.  
  25.   - lavcrate_higher        Use    length=64
  26.   - lavcrate_high          Use length=32
  27.   - lavcrate               Use length=16
  28.   - lavcrate_fast          Use length=8
  29.   - lavcrate_faster        Use length=4
  30.  
  31. Linear interpolation and cutoff values are automatically used depending on
  32. the supplied parameters and whether the plugin is used to upsample or
  33. downsample.
  34.